Skip to main content

Enquiry_ChatMessages Tables

The accounts_serviceUnitEnquiry_chatMessages_changelog and accounts_serviceUnitEnquiry_chatMessages_latest tables stores the messages sent by supplier and customers for of all the enquiries.


🔹 Standard Columns​

Column NameData TypeNullableDescription
document_nameSTRINGYESName of the document
document_event_idSTRINGYESEvent ID associated with the change
document_timestampTIMESTAMPYESTime of the document change
document_operationSTRINGYESOperation performed (INSERT/UPDATE/...)
document_idSTRINGYESID of the document
messageCountFromLeaseINT64YESCount of messages from lease
accountIdSTRINGYESAccount identifier
serviceUnitIdSTRINGYESService unit identifier
enquiryIdSTRINGYESEnquiry identifier

🔸 Array Columns​

Array of STRUCT

messages​

Column NameData TypeNullableDescription
enquiryStatusSTRINGYESStatus of the enquiry
idSTRINGYESUnique message ID
markedAsReadBy.firstnameSTRINGYESFirst name of the person who read
markedAsReadBy.lastnameSTRINGYESLast name of the person who read
markedAsReadBy.objectIDSTRINGYESObject ID of the person who read
markedAsReadBy.timestamp._secondsINT64YESTimestamp (seconds)
markedAsReadBy.timestamp._nanosecondsINT64YESTimestamp (nanoseconds)
messageSTRINGYESActual message content
messageFromSTRINGYESSender of the message
messageToSTRINGYESReceiver of the message
myMessageBOOLYESWhether it's user's message
timestamp._secondsINT64YESMessage timestamp (seconds)
timestamp._nanosecondsINT64YESMessage timestamp (nanoseconds)
user.companySTRINGYESCompany of the user
user.contact.emailSTRINGYESEmail of the user's contact
user.firstnameSTRINGYESFirst name of the user
user.lastnameSTRINGYESLast name of the user
user.objectIDSTRINGYESObject ID of the user
codeSTRINGYESOptional message code